package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YufuToDescBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YufuToDescService extends BaseService<YufuToDescBean> {

	YufuToDescBean getYufuToDescBeanById(String id) throws Exception;
	
	void removeYufuToDescBeanById(String id) throws Exception;
	
	void removeYufuToDescBeanByIds(String ids) throws Exception;
	
	YufuToDescBean saveYufuToDescBean(YufuToDescBean crm) throws Exception;
	
	YufuToDescBean updateYufuToDescBean(YufuToDescBean crm) throws Exception;
	
	Page<YufuToDescBean>  findYufuToDescBeanByCond(YufuToDescBean bean,
			Page<YufuToDescBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYufuToDescBeanExt(String sql) throws Exception;

	String findYufuToDescBeanExtCreate(String tableName) throws Exception;

	String findYufuToDescBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYufuToDescBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYufuToDescBeanExtData(String tableName, String id)
			throws Exception;
}